﻿//===================================================================================
// Copyright (c) Ryan Garrett.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===================================================================================

using System;

namespace Caffeine.Core.Test.TestModel.ValidationModels
{
    public class ReturnNullModel : ModelBase
    {
        public ReturnNullModel()
        {
            RegisterProperty<String>("PropertyA");
        }

        public ModelProperty<String> PropertyA
        {
            get
            {
                return null;
            }
        }

        public void ValidateProperties()
        {
            ValidateRegisteredProperties();
        }
    }
}
